<?php
//$mat="/eo*/";
//$str='eoo';
//$a=preg_replace($mat,"x",$str);
//var_dump($a);
//echo "<br>";
//$b=preg_match($mat,$str,$res);
//var_dump($res);


$sfz="/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/i";
$mysfz="44093399920815251x";
$res=preg_match($sfz,$mysfz);

